<?php
header("Content-Type: text/html; charset=iso-8859-1");
require 'include.php';
$match_id = (!empty($_REQUEST['match_id'])) ? $_REQUEST['match_id'] : "";
if($match_id){
	$match = new match($match_id);
	$fields = array("date","heure","salle","resultat");
	foreach($fields as $field){
		if($field == 'date') echo format_date($match->date)."<!--!>";
		elseif($field == 'heure') echo format_heure($match->heure)."<!--!>";
		elseif($field == 'salle'){
			$salle = new salle($match->salle);
			echo $salle->nom."<!--!>";
		}
		else echo $match->$field."<!--!>";
	}
}
?>